package com.wyh.domain.dto.groupOne.projectaboutdto.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel(value = "新增园区数据 ")
public class GardenAreaAdd {
    /**
     * 上级id
     */
    @NotNull(message = "上级id不能为空")
    @ApiModelProperty(value = "上级id",required = true)
    private Integer superiorid;
    /**
     *自身名字
     */
    @NotNull(message = "名称不能为空")
    @Size(max = 15, min = 2, message = "园区名称2-30字")
    @ApiModelProperty(value = "园区自身名字",required = true)
    private String name;
    /**
     *园区编号
     */
    @NotNull(message = "编号不能为空")
    @Size(max = 11, message = "楼盘编号长度不能超过11")
    @ApiModelProperty("园区编号")
    private String projectnumber;
    /**
     *自身类型
     */
    @NotNull(message = "自身不能为空")
    @ApiModelProperty(value = "自身类型",required = true)
    private String type;
    /**
     * 上级类型
     */
    @NotNull(message = "上级类型不能为空")
    @ApiModelProperty(value = "上级类型",required = true)
    private String superType;
}
